home *** CD-ROM | disk | FTP | other *** search
- NEQV(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- NNEEQQVV, XXOORR - Computes logical difference
-
- SSYYNNOOPPSSIISS
- NNEEQQVV (([II==]_i,,[JJ==]_j))
- XXOORR (([II==]_i,,[JJ==]_j))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90 and MIPSpro 7 Fortran 90: NNEEQQVV, XXOORR
-
- MIPSpro Fortran 77: XXOORR
-
- SSTTAANNDDAARRDDSS
- Fortran extensions
-
- DDEESSCCRRIIPPTTIIOONN
- NNEEQQVV and XXOORR are two names for the same routine. NNEEQQVV and XXOORR are
- elemental functions. They accept the following arguments:
-
- _i Must be of type Boolean, integer, real, logical, or Cray
- pointer.
-
- _j Must be of type Boolean, integer, real, logical, or Cray
- pointer.
-
- NNOOTTEESS
- These routines are outmoded. Refer to the _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e _R_e_f_e_r_e_n_c_e
- _M_a_n_u_a_l, _V_o_l_u_m_e _3, for information about outmoded features and their
- preferred standard alternatives. The name of this intrinsic cannot be
- passed as an argument.
-
- CCAAUUTTIIOONNSS
- Unexpected results can occur when Boolean functions are declared
- external and then used with logical arguments. The external Boolean
- functions always treat their arguments as type Boolean and return a
- Boolean result on UNICOS and UNICOS/mk systems. On IRIX systems, they
- return an integer result.
-
- RREETTUURRNN VVAALLUUEESS
- When given two arguments of type logical, NNEEQQVV and XXOORR compute a
- logical difference and return a logical result. When given two
- arguments of type Boolean, integer, real, or pointer, NNEEQQVV and XXOORR
- compute a bit-wise logical difference and return a Boolean result.
-
- The following tables show both the logical difference and bit-wise
- logical difference. NNEEQQVV is shown in the tables, but XXOORR produces
- identical results.
-
- -----------------------------------------------------------------
- Logical Logical (Logical Variable 1) NNEEQQVV
- Variable 1 Variable 2 (Logical Variable 2)
- -----------------------------------------------------------------
- T T F
- T F T
- F T T
- F F F
- -----------------------------------------------------------------
-
- --------------------------------------------------------------
- Bit of Bit of (Bit of Variable 1) NNEEQQVV
- Variable 1 Variable 2 (Bit of Variable 2)
- --------------------------------------------------------------
- 1 1 0
- 1 0 1
- 0 1 1
- 0 0 0
- --------------------------------------------------------------
-
- EEXXAAMMPPLLEESS
- The following section of Fortran code shows the NNEEQQVV function used
- with two arguments of type logical. XXOORR is used in the same manner
- and produces the same results.
-
- LOGICAL L1, L2, L3
- ...
- L3 = NEQV(L1,L2)
-
- The following section of Fortran code shows the NNEEQQVV function used
- with two arguments of type integer. XXOORR is used in the same manner
- and produces the same results. The bit patterns of the arguments and
- results are also given. For clarity, only the rightmost 8 bits are
- shown.
-
- INTEGER I1, I2, I3
- I1 = 12
- I2 = 10
- ...
- I3 = NEQV(I1,I2)
- ------------------------------- -------------------------------
- | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
- ------------------------------- -------------------------------
- I1 I2
-
- -------------------------------
- | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 |
- -------------------------------
- I3
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-